﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<% 
    BIZ.WebInfomationPublishOper ipo = new BIZ.WebInfomationPublishOper();
    string pid = Request.QueryString["pid"] == null ? ((int)DAL.webEnums.template.新闻中心_行业动态).ToString() : Request.QueryString["pid"].ToString();
    string id = Request.QueryString["id"] == null ? "0" : Request.QueryString["id"].ToString();
    IList list = ipo.getinfomationbyid(int.Parse(id));
    Hashtable tb = null;
    if (list.Count > 0)
        tb = (Hashtable)list[0];
%>
<div class="main w_980 clearfix">
	<!--left-->
    <div class="left_box">
    	<!--menu-->
        <div class="menu">
        	<h2><img src="../../images/ico_11.png" /><strong><span>新闻中心</span></strong></h2>
            <ul>
                <%
                    Response.Write("<li><a href=\"xwzx.html?pid=" + (int)DAL.webEnums.template.新闻中心_行业动态 + "\" class=\"" + (pid == ((int)DAL.webEnums.template.新闻中心_行业动态).ToString() ? "s" : "") + "\">行业动态</a></li>");
                    Response.Write("<li><a href=\"xwzx.html?pid=" + (int)DAL.webEnums.template.新闻中心_学校新闻 + "\" class=\"" + (pid == ((int)DAL.webEnums.template.新闻中心_学校新闻).ToString() ? "s" : "") + "\">学校新闻</a></li>");
                    Response.Write("<li><a href=\"xwzx.html?pid=" + (int)DAL.webEnums.template.新闻中心_学校活动 + "\" class=\"" + (pid == ((int)DAL.webEnums.template.新闻中心_学校活动).ToString() ? "s" : "") + "\">学校活动</a></li>");
                    Response.Write("<li><a href=\"xwzx.html?pid=" + (int)DAL.webEnums.template.新闻中心_学校公告 + "\" class=\"" + (pid == ((int)DAL.webEnums.template.新闻中心_学校公告).ToString() ? "s" : "") + "\">学校公告</a></li>");
                %>
            </ul>
        </div>
        <!--联系方式-->
        <% 
            Html.RenderPartial("~/Views/Shared/lxfs.ascx"); 
        %>
    </div>
	<!--right-->
    <div class="right_box">
    	<!--title-->
    	<div class="title_box"><strong><%=tb["Wi_title0"]%></strong><span>·<a href="/index">首页</a>&gt;<a href="xwzx.html">新闻中心</a>&gt;<a href="xwzx.html?pid=<%=pid %>"><%=Enum.GetName(typeof(DAL.webEnums.template), int.Parse(pid)).Replace("新闻中心_", "")%></a>&gt;<a href="detail.html?pid=<%=pid %>&id=<%=id %>"><%=tb["Wi_title0"]%></a></span></div>
        <!--box-->
        <div class="info_box_main">
            <h4><%=tb["Wi_title1"]%></h4>
            <div class="info_box_time"><%=DateTime.Parse(tb["Wi_addTime"].ToString()).ToString("yyyy年MM月dd日HH:mm")%><span>嘉沃教育</span></div>
            <div class="info_box_main_txt">
            	<%=(tb["Wi_content"] == null ? "" : BIZ.StringTool.GetImgs(tb["Wi_content"].ToString()))%>
            </div>
        </div>
    </div>
</div>
</asp:Content>
